Electronic apparatus with version-up information having address information storing in EEPROM

ABSTRACT

A memory card stores programs and constant data for both a master CPU and a slave CPU. The master CPU identifies a header portion of the memory card attached to a card adapter to identify the storage locations of the data for the master CPU and the slave CPU, the size thereof and the addresses in RAMs at which the data for the master CPU and that for the slave CPU are stored. The master CPU writes the data for the master CPU in the RAM while it serially transfers the data for the slave CPU to the slave CPU and writes it in the RAM for the slave CPU. The individual CPUs perform control of loads according to the data in the RAMs.

This application is a division of application Ser. No. 08/449,713 filed May 24, 1995, now U.S. Pat. No. 5,757,639, which is a division of application Ser. No. 08/275,334 filed Jul. 14, 1994, now U.S. Pat. No. 5,552,981, which is a continuation of prior application Ser. No. 07/857,273 filed Mar. 25, 1992, the latter now abandoned.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an electronic apparatus, and more particularly, to an electronic apparatus of the type which is controlled using a plurality of microcomputers.

2. Description of the Related Art

In a conventional electronic apparatus having microcomputers, built-in control programs and constant data are stored in a ROM fabricated on a substrate. The types of ROMs used in such an apparatus include an EPROM in which data can be rewritten electrically and the data stored in it are erasable using ultraviolet radiation, or a mask ROM in which data cannot be rewritten or erased.

When the built-in control programs stored in the ROM fail or when the specifications of the programs are to be changed, the EPROM or mask ROM must be replaced with a new one having the desired programs.

To overcome this drawback, supply of the built-in control programs and constant data from a memory card or a floppy disk has been considered, like the application programs of a personal computer. The control programs and constant data supplied from the memory card or the floppy disk are stored temporarily in a memory in which data can be written, such as a RAM, and are then executed.

However, in the aforementioned type of electronic apparatus having a plurality of microcomputers, means must be provided in each of the microcomputers for reading the control programs and constant data from the memory card or floppy disk into each individual microcomputer, thus increasing the overall size and production cost of the apparatus.

SUMMARY OF THE INVENTION

One object of the present invention is to improve an electronic apparatus which is controlled by a plurality of microcomputers.

Another object of the present invention is to provide an electronic apparatus having a plurality of microcomputers which allows for efficient supply of programs to each of the individual microcomputers.

To achieve the aforementioned objects, the present invention provides an electronic apparatus in which programs for the individual microcomputers are read out from a storage medium which can be attached to and removed from the apparatus and in which the programs are then transferred by a communication between the microcomputers to the corresponding microcomputer so as to supply the programs to each of the individual microcomputers.

Other objects and advantages of the invention will become apparent during the following description taken in connection with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a first embodiment of an electronic apparatus according to the present invention;

FIG. 2 is a block diagram of a second embodiment of the electronic apparatus according to the present invention;

FIG. 3 is a block diagram of a third embodiment of the electronic apparatus according to the present invention;

FIG. 4 is a block diagram of a fourth embodiment of the electronic apparatus according to the present invention;

FIG. 5 illustrates how data is stored in a memory card used in the embodiments of the present invention;

FIG. 6 is a flowchart showing the contents of a boot program for the master CPU which is used in the first embodiment; and

FIG. 7 is a flowchart showing the contents of a boot program for a slave CPU which is used in the first embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Embodiments of the present invention will be described below with reference to the accompanying drawings.

FIG. 1 is a block diagram of an electronic apparatus illustrating the basic structure of a first embodiment of the present invention.

In the structure shown in FIG. 1, a master CPU (central processing unit) 1 is connected via a CPU bus to a boot ROM (read-only memory) 2 and to a RAM (random-access memory) 3 which stores the programs and constant data supplied from an external device. The RAM 3 is also used as the work area of the master CPU 1. The master CPU 1 is also connected via the CPU bus to a memory card 5 which stores the programs and constant data to be supplied therefrom. The master CPU 1 accesses the memory card 5 through a card adapter 4. A slave CPU 6 is connected to a boot ROM 7 and to a RAM 8 which stores the programs and constant data supplied from an external device. The RAM 8 is also used as the work area of the slave CPU 6. Loads which are to be controlled by the master CPU 1 and the slave CPU 6 are respectively connected to the CPUs 1 and 6 through I/Os 9 and 10. As shown in FIG. 1, the master CPU 1 and the slave CPU 6 exchange data with each other by serial communication.

In the electronic apparatus arranged in the manner mentioned above, when the apparatus is switched on, the slave CPU 6 performs an initialization program necessary only to make the slave CPU 6 operate using the program stored in the boot ROM 7. This initialization program also includes the program which makes the slave CPU 6 ready for serial communication with the master CPU 1. Consequently, the slave CPU 6 is put into a waiting state in which it waits for the data from the master CPU 1 through the serial communication.

After the apparatus is switched on, the master CPU 1 executes the necessary initialization according to the program stored in the boot ROM 2 (which includes the program for making the master CPU 1 initialized for serial communication), as in the case of the slave CPU 6. Thereafter, the master CPU 1 reads out the memory contents of the memory card 5 attached to the card adapter 4. If the memory contents which are read out are programs and constant data (hereinafter both the programs and the constant data being referred to simply as program data) for the master CPU 1, they are stored in the RAM 3. If the memory contents are program data for the slave CPU 6, the master CPU 1 transmits them to the slave CPU 6 through serial communication. The slave CPU 6 stores the program data received from the master CPU 1 in the RAM 8.

After all the necessary data are read out from the memory card 5, the master CPU 1 initiates control operations according to the programs stored in the RAM 3. The slave CPU 6 initiates control operations according to the programs stored in the RAM 8.

The structure of the program data in the memory card 5 will be described below with reference to FIG. 5.

As shown in FIG. 5, in the memory card 5, the addresses in the memory card 5 of the program data for the master CPU (MRDADR-L (low byte) and MRDADR-H (high byte)) and the slave CPU (SRDADR-L and SRDADR-H), the sizes of the data (MDTSZ-L, MDTSZ-H, SDTSZ-L and SDTSZ-H), and the addresses in the RAMs at which the program data for the master CPU (MWRADR-L and MWRADR-H) and that for the slave CPU (SWRADR-L and SWRADR-H) are to be stored for execution are written in an address space of 12 bytes from address location 00(Hex) to OB (Hex). In other words, it is possible to obtain the locations in the memory card 5 at which the program data for the master CPU are stored, the locations at which the program data for the slave CPU are stored, and the locations in the respective RAMs at which the data is to be written, by referring to a header portion (from address 00(Hex) to address 0B(Hex)) of the memory card 5.

The operation of the master CPU 1 and that of the slave CPU 6 when the apparatus arranged in the aforementioned manner is switched on will be described below.

First, the sequence of operations of the master CPU 1 will be explained with reference to FIG. 6. It is to be noted that the program related to the flowchart of FIG. 6 is stored in the boot ROM 2.

When the apparatus is switched on, the master CPU 1 performs initialization associated with individual circuits (not shown) which are under the control of the master CPU 1 as well as initialization associated with serial communication with the slave CPU 6.

Next, in step S2, the master CPU 1 refers to the header of the memory card 5 mounted through the card adapter 4 to check the storage locations and size of the program data for the master CPU 1 and those of the program data for the slave CPU. Next, in step S3, the master CPU 1 reads in the program data for the master CPU and writes it at the designated addresses in the RAM 3. Thereafter, the master CPU 1 checks whether or not the slave CPU 6 is ready for serial reception in step S4. If it is determined that the slave CPU 6 is ready for serial reception, the master CPU 1 transfers first the addresses to which the program data for the slave CPU 6 are to be stored and the size thereof and then the program data itself, so that the program data is stored in RAM 8.

When the program data for the master CPU 1 has been stored in the RAM 3 and transfer of the program data to the slave CPU 6 has been completed, control of the master CPU 1 is transferred to the programs stored in the RAM 3 (in a practical operation, the address in the RAM 3 is assigned to a program counter PC of the master CPU 1).

Next, the operation of the slave CPU 6 when the apparatus is switched on will be described below with reference to the flowchart of FIG. 7. The program related to the flowchart is stored in the boot ROM 7.

When the apparatus is switched on, the slave CPU 6 performs initialization associated with individual circuits (not shown) which are under the control of the slave CPU 6, as well as initialization associated with the serial communication with the master CPU 1 in step S11. When the series of initializing operations is completed, the slave CPU 6 sends out to the master CPU 1 a status signal which indicates that the slave CPU 6 is ready for receiving data (the master CPU 1 checks reception of this status signal to make a determination as to whether the slave CPU 6 is ready for receiving data). Next, in step S12, it is determined whether or not data is received from the master CPU 1.

If there is a data reception, the addresses in the RAM 8 at which the program data for the slave CPU is to be stored and the size of the program data are input in step S13. Thereafter, the program data transferred from the master CPU is written in sequence at the designated addresses in the RAM 8. When writing the data of the designated size has been completed, i.e., when the programs for the slave CPU 6 have been stored, control of the slave CPU 6 is transferred to the programs in the RAM 8 in step S15.

The programs and constant data for each of at least two CPUs thus be supplied externally from the same storage medium through the same interface.

A second embodiment of the present invention will be described below with reference to FIG. 2.

In FIG. 2, reference numerals 1 through 10 denote parts which are the same as those of the first embodiment, and a description thereof is omitted. In FIG. 2, reference numeral 11 denotes a RAM for storing the programs and constant data for the slave CPU 6 for execution. The RAM 11 is a two-port RAM (a so-called dual port RAM), and is connected to both the CPU bus of the master CPU 1 and to the CPU bus of the slave CPU 6 so that it can be accessed by both the master CPU 1 and the slave CPU 6. The master CPU 1 is designed to control through the I/O 9 a HALT signal and a RESET signal for the slave CPU 6.

When the apparatus is switched on, the master CPU 1 reads out the memory contents from the memory card 5 according to the programs stored in the boot ROM 2. If the read out memory contents are the program data for the master CPU, they are stored in the RAM 3. If the memory contents read out from the memory card 5 are the program data for the slave CPU 6, they are stored in the two-port RAM 11. During storage, the master CPU 1 holds the slave CPU 6 in a halt state by the use of a HALT signal. After all of the necessary data has been read out from the memory card 5, the master CPU 1 cancels the HALT state of the slave CPU 6 and resets the slave CPU 6 by the use of a RESET signal. The reset slave CPU 6 initiates operation according to the programs stored in the two-port RAM 11.

The programs and constant data for two or more CPUs can thus be supplied externally through the same interface. In this way, provision of the boot ROM of the slave CPU 6 is eliminated.

A third embodiment of the present invention will be described below with reference to FIG. 3. In FIG. 3, the same reference numerals are used to denote parts which are the same as those of the first embodiment.

In FIG. 3, change over of the bus through which the memory card is accessed is made by a bus selector unit 12. The selection to be made by the bus selector 12 is designated by a switch unit 13. When the switch unit 13 is set to “A”, it is possible for the master CPU 1 to read out the memory contents from the memory card 5. When the switch unit 13 is switched to “B”, the slave CPU 6 can read out the contents of the memory card 5. The state in which the switch unit 13 is set is input to both CPUs through the corresponding I/Os as a SEL signal. EEPROMs (electrically erasable and programmable ROMs) 14 and 15 are electrically erasable non-volatile memories and store the programs and constant data for the master CPU 1 and slave CPU 6, respectively. Battery backed up RAMs may be used in place of the EEPROMs.

When the apparatus is switched on, both the master CPU 1 and the slave CPU 6 are initialized according to the programs stored in the boot ROMs 2 and 7, respectively. Next, the master CPU 1 and the slave CPU 6 check the state of the SEL signal so as to determine whether they are to read out the programs from the memory card 5. When the SEL signal has a logical low level, i.e., when the state of the SEL signal is “0”, the master CPU 1 stores the contents of the memory card 5 in the EEPROM 14, and then control according to the programs stored in the boot ROM 2 is transferred to control according to the updated programs stored in the EEPROM 14.

The slave CPU 6 transfers control from the programs stored in the boot ROM 7 to the programs stored in the EEPROM 15 which are updated by reading out the programs from the memory card 5 and storing them in EEPROM 15. When the SEL signal has a logical high level, i.e., when the state of the SEL signal is “1”, the slave CPU 6 can update the programs stored in the EEPROM 15.

Version up of the programs for two or more CPUs can thus be performed externally.

A fourth embodiment of the present invention will be described below with reference to FIG. 4. The same reference numerals are used to denote parts which are the same as those of the first embodiment.

In FIG. 4, a modem 16 is connected to the CPU 1 through an RS232C interface port. The program data sent through a public communication line is stored in either the RAM 3 or the EEPROM 14.

Thus, version up of the programs and constant data for the CPU can be performed externally.

As will be understood from the foregoing description, in the present invention, it is possible to supply the program data for a plurality of CPUs, i.e., the programs and constant data to which the programs refer, from the same data supply device.

Particularly, when the data read out by a first CPU is necessary for a second CPU, the first CPU 1 stores it in a common memory area to which both the first and second CPUs can gain an access. Thereafter, the second CPU is activated. Consequently, it is possible to supply data necessary for either one of a plurality of CPUs from the same storage medium.

Furthermore, it is possible to supply data required for either one of a plurality of CPUs from the same storage medium by changing over the path through which the plurality of CPUs make an access to the storage medium.

Furthermore, version up of the programs is made possible from a remote site by using a public communication line or LAN as an external data supply means.

The electronic apparatus of the present invention in which control is performed by a plurality of microcomputers may be a copying machine, a facsimile machine, an electrophotographic printer, or a bubble jet type ink jet printer.

Having described our invention as related to the embodiments shown in the accompanying drawings, it is our intention that the invention not be limited by any of the details of the description, but rather be construed broadly within its spirit and scope as set out in the accompanying claims. 

What is claimed is:
 1. An apparatus having a plurality of microcomputers, and in which a load and a ROM for storing control information for controlling said load are provided for each of said microcomputers, wherein, in said apparatus, each said ROM is an electrically erasable and programmable ROM, and wherein said apparatus comprises: an input unit adapted to input version-up information, which includes rewrite information to be stored in said ROM and address information specifying an area to which the rewrite information is to be rewritten, for making the version-up of the control information; a judgment unit adapted to judge one of said plurality of the ROMs corresponding to the input version-up information when the version-up information is input by said input unit; and a rewrite unit adapted to rewrite the rewrite information of said input version-up information into the area, which is specified by said address information of said input version-up information, of said ROM judged by said judgment unit.
 2. An apparatus according to claim 1, wherein said input unit is connected to a first microcomputer of said plurality of microcomputers.
 3. An apparatus according to claim 1, wherein the rewrite information includes a control program and constant data.
 4. An apparatus according to claim 1, wherein said input unit has an connection mechanism adapted to connected to a public line or an attachment mechanism adapted to attach to a detachable recording medium.
 5. An apparatus according to claim 1, wherein said apparatus is one of a copying machine, a facsimile apparatus, a electrophotographic printer, and an ink-jet printer.
 6. An apparatus according to claim 2, wherein, in case that said input version-up information is judged to correspond to a ROM of a second microcomputer by said judgment unit, said version-up information is transmitted from said first microcomputer to said second microcomputer via a predetermined transmission path.
 7. An apparatus according to claim 2, wherein said judgment unit comprises said first microcomputer and judgment program memory adapted to store a program for judging one of said plurality of the ROMs corresponding to the input version-up information, and said first microcomputer judges one of said plurality of the ROMs corresponding to the version-up information input by said input unit on the basis of the judgment program stored in said judgment program memory.
 8. An apparatus according to claim 6, wherein the rewrite information includes a control program and constant data.
 9. An apparatus according to claim 6, wherein said input unit is adapted to connect to a public line or adapted to attach to a detachable recording medium.
 10. An apparatus according to claim 6, wherein said apparatus is one of a copying machine, a facsimile apparatus, an electrophotographic printer, and an ink-jet printer.
 11. An apparatus having a plurality of microcomputers, and in which a load and an EEPROM for storing control information for controlling said load are provided for each of said microcomputers, said apparatus comprising: an input unit adapted to input version-up information, which includes rewrite information to be stored in said EEPROM and address information specifying an area to which the rewrite information is to be written, for making the version-up of the control information; a judgment unit adapted to judge one of said plurality of the EEPROMs corresponding to the input version-up information when the version-up information is input by said input unit; and a rewrite unit adapted to rewrite the rewrite information of said input version-up information into the area, which is specified by said address information of said input version-up information, of said EEPROM judged by said judgment unit.
 12. An apparatus according to claim 11, wherein said input unit is connected to a first microcomputer of said plurality of microcomputers.
 13. An apparatus according to claim 11, wherein the rewrite information includes a control program and constant data.
 14. An apparatus according to claim 11, wherein said input unit has an connection mechanism adapted to connect to a public line or an attachment mechanism adapted to attach to a detachable recording medium.
 15. An apparatus according to claim 11, wherein said apparatus is one of a copying machine, a facsimile apparatus, a electrophotographic printer, and an ink-jet printer.
 16. An apparatus according to claim 12, wherein, in case that said input version-up information is judged to correspond to an EEPROM of a second microcomputer by said judgment unit, said version-up information is transmitted from said first microcomputer to said second microcomputer via a predetermined transmission path.
 17. An apparatus according to claim 12, wherein said judgment unit comprises said first microcomputer and judgment program memory adapted to store a program for judging one of said plurality of the EEPROMs corresponding to the input version-up information, and said first microcomputer judges one of said plurality of the EEPROMs corresponding to the version-up information input by said input unit on the basis of the judgment program stored in said judgment program memory.
 18. An apparatus according to claim 16, wherein the rewrite information includes a control program and constant data.
 19. An apparatus according to claim 16, wherein said input unit is adapted to connect to a public line or adapted to attach to a detachable recording medium.
 20. An apparatus according to claim 16, wherein said apparatus is one of a copying machine, a facsimile apparatus, an electrophotographic printer, and an ink-jet printer. 